home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / castools.zip / FUNCEH.ASM < prev    next >
Assembly Source File  |  1990-01-05  |  1KB  |  41 lines

  1. Include multi.inc
  2. Include model.inc
  3.  
  4. ;==============================================================================
  5. ;
  6. ;   CAS function Eh -- Get External Data Block
  7. ;
  8. ;   Format:
  9. ;               int CASGetExternalData (EDB *buffer)
  10. ;   Input:
  11. ;               pointer to EDB structure
  12. ;   Output:
  13. ;               Returns 0 if successful or negative error code,
  14. ;               fills external data structure.
  15. ;==============================================================================
  16.  
  17.                 .CODE
  18. CASGetExternalData      PROC    arg1:PTR WORD
  19.  
  20.                 push    ds              ; save registers
  21.                 push    dx
  22.  
  23.                 mov     ax,MUX          ; load multiplex number
  24.                 mov     ah,al           ; move into ah
  25.                 mov     al,0Eh          ; CAS function E
  26.         IF      @DataSize               ; large and medium models
  27.                 lds     dx,arg1         ; pointer to data block
  28.         ELSE
  29.                 mov     dx,arg1         ; small model
  30.         ENDIF
  31.                 int     2Fh
  32.  
  33.                 pop     dx              ; restore registers
  34.                 pop     ds
  35.                 ret
  36. CASGetExternalData      endp
  37.  
  38.                 END
  39.  
  40.  
  41.